<template>
  <van-cell title="个人信息" is-link to="/user/info"/>
  <van-cell title="我的队伍" is-link to="/user/my/create"/>
  <van-cell title="加入的队伍" is-link to="/user/my/join"/>

</template>

<script setup lang='ts'>
import { useRouter} from 'vue-router'
import {onMounted, ref} from "vue";
import {currentUser} from "../../services/api.ts";

const router = useRouter()
const user:API.User = ref({})

onMounted(async () => {
  const res = await currentUser()
  user.value = res.data;
})

</script>
<style scoped>

</style>